package com.sky.service;

import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;

public interface ReportService {

    /**
     * 统计指定区间内的营业额
     * @param startDate
     * @param endDate
     * @return
     */
    TurnoverReportVO getTurnoverStatistic(LocalDate startDate, LocalDate endDate);



    /**
     * 统计指定区间内的用户数量
     * @param startDate
     * @param endDate
     * @return
     */
    UserReportVO getUserStatistic(LocalDate startDate, LocalDate endDate);

    /**
     * 统计指定区间内的订单数量
     * @param begin
     * @param end
     * @return
     */
    OrderReportVO getOrdersStatistic(LocalDate begin, LocalDate end);

    /**
     * 获取指定区间内销量前十的商品
     * @param begin
     * @param end
     * @return
     */
    SalesTop10ReportVO getTop10(LocalDate begin, LocalDate end);

    /**
     * 导出营业数据
     * @param response
     */
    void exportBusinessData(HttpServletResponse response);
}
